﻿@model myMvcBlog.Models.SidebarView
<div id="about">
    <h2>
        关于我
    </h2>
    <!-- you can edit this -->
    <p>
        我，中文名：冯琦钧， 洋名:Derek, 常用ID:Jun1st， 目前就职于MaryKay China, 担任高级软件工程师<br/>
        <br/>
        毕业于上海交通大学软件学院，对软件开发有浓厚的兴趣，一直坚信编写程序是一项艺术工作。 目前主要从事Microsoft .Net方面的开发工作。
        <br />
        <strong>CLEAN CODE WORKS</strong>
    </p>
    <p>
        联系我：
        <img alt="gmail" src=@Url.Content("~/Content/Images/gmail.png") /><br/>
        <img style="margin-left: 50px;" alt="msn" src=@Url.Content("~/Content/Images/msn.png") />
    </p>
    <!-- you can edit this -->
</div>
<div class="recent">
    <h2>
        最新评论</h2>
    <ul>
        @foreach (var post in Model.RecentComments)
        {
            <li>
                <a>@post.Content</a> 
            </li>
        }
    </ul>
</div>
<div class="recent">
    <h2>
        最新随笔</h2>
    <ul>
        @foreach (var post in Model.RecentPosts)
        {
            <li>
                @Html.ActionLink(post.Name, "View", new{ controller = "Home", nicename = post.UrlName }) 
            </li>
        }
    </ul>
</div>
<div class="sideR">
    <ul>
        <li class="archives">
            <h2>
                随笔归档
            </h2>
            <ul>
                @foreach (var archive in Model.MonthlyArchives)
                { 
                    <li>
                        @Html.ActionLink(archive.Year + "/" + archive.Month + "(" + archive.Count + ")", "Index", 
                            new { controller = "Archive",Year=archive.Year, month=archive.Month})
                    </li>
                }
            </ul>
        </li>
    </ul>
</div>
<div class="sideL">
    <ul>
        <li class="categories">
            <h2>
                随分分类</h2>
            <ul>
                @foreach (var cat in Model.Categories)
                {
                    <li class="cat-item">
                    @Html.ActionLink(cat.Name, "View", new { controller="Category", nicename=cat.UrlName})</li>
                }
            </ul>
        </li>
        <li>
            <h2>
                电子书下载</h2>
            <ul>
                <li><a href='http://www.ppurl.com' target='_blank'>皮皮书屋</a></li>
                <li><a href='http://www.wowebook.com' target='_blank'>Wow! ebooks</a></li>
            </ul>
        </li>
    </ul>
</div>
